<!--title-->
<div class="mnav1">
	<div class="m_nav">
		<div class="nav_left">
			<em class="home_icon"><?=$this->sys_name?></em><span>&nbsp;&gt;&nbsp;</span><font><?=$this->title?></font>
		</div>
	</div>
</div>

<div class="content-table2">
<div class="content-table-title"><?=$this->title?></div>
<br />
<?php if($this->msg):?>
<div class="replace"><?=$this->msg?></div>
<br />
<?php endif;?>
<div class="form-edit-task">

<form action="/contracts/rejection-submit" method="post" name="form1" onsubmit="submitform(this);return false;">
<table border="0" width="100%">
	<tr>
		<td align="right" width="30%">客户全称：</td>
		<td align="left">&nbsp;<?=$this->data['client_name']?></td>
	</tr>
	<tr>
		<td align="right" width="30%">销售：</td>
		<td align="left">&nbsp;<?=$this->data['sales_emp_name']?></td>
	</tr>
	<tr>
		<td align="right" width="30%">订单生成时间：</td>
		<td align="left">&nbsp;<?=$this->data['client_name']?></td>
	</tr>
	<tr>
		<td align="right">驳回原因：</td>
		<td align="left">&nbsp;<input type="text" placeholder="驳回原因" name="reason" id="reason" style="width: 400px"><font color="red"><font color="red"> *</font></td>
	</tr>
	<tr>
		<td colspan="2" align="center"><input type="hidden" name="contract_id" value="<?=$this->data['contract_id']?>" /><input type="button" class="buttonlong" value="提交" onclick="submitform();return false;" /></td>
	</tr>
</table>
<br /><br />
</form>
</div>
<br/><br/>
</div>

<script>
function submitform() 
{
	
	if( document.form1.reason.value.length == 0 )
	{
		alert("驳回原因不能为空。");
		return false;
	}
	
	form1.submit();
}
</script>
